package com.itguigu.spzx.feign.order;

import com.itguigu.spzx.model.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lxr
 * @date 2025/10/21 11:10
 */
@FeignClient(name = "spring-cloud-user",fallback = UserOpenFeignFallBack.class)
public interface UserOpenFeign {

    @GetMapping("/api/user/findUserByUserId/{userId}")
    public User findUserByUserId(@PathVariable(value = "userId") Long userId);

}
